

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>修改用户信息</title>
  {include file="include/top"}

  <style>
    .layui-form-label{width: 100px;}
  </style>
</head>
<body>

  <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-app-form-tags" style="padding: 20px 0 0 0;">
    {include file="include/selectsearch" ctype='layui-form-item cdisplay' title="工种" classname='cid' optionHtml='<?php echo $cid;?>' }
    {include file="include/selectsearch" ctype='layui-form-item cdisplay' title="施工点分配" classname='gid' optionHtml='<?php echo $gid;?>' }
    <div class="layui-form-item">
      <label class="layui-form-label">姓名</label>
      <div class="layui-input-inline">
        <input type="text" name="username" value="{$user.username?$user.username:''}" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">电话</label>
      <div class="layui-input-inline">
        <input type="text" name="mobile" value="{$user.mobile?$user.mobile:''}" lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">身份证号</label>
      <div class="layui-input-inline">
        <input type="text" name="carID" value="{$user.carID?$user.carID:''}" lay-verify="required" placeholder="请输入身份证号" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">家庭地址</label>
      <div class="layui-input-inline">
        <input type="text" name="address" value="{$user.address?$user.address:''}" lay-verify="required" placeholder="请输入家庭地址" autocomplete="off" class="layui-input">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">联系人和电话</label>
      <div class="layui-input-inline">
        <input type="text" name="contacts" value="{$user.contacts?$user.contacts:''}" lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">银行卡收款人</label>
      <div class="layui-input-inline">
        <input type="text" name="bankUser" value="{$user.bankUser?$user.bankUser:''}" lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">银行账号</label>
      <div class="layui-input-inline">
        <input type="text" name="bankAccount" value="{$user.bankAccount?$user.bankAccount:''}" lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">开户行信息</label>
      <div class="layui-input-inline">
        <input type="text" name="bankName" value="{$user.bankName?$user.bankName:''}" lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item" style="display: none;">
      <label class="layui-form-label">银行卡图片</label>
      <div class="layui-input-inline">
        <input type="text" name="bankImg" value="{$user.bankImg?$user.bankImg:''}" lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
      </div>
    </div>

    {include file='include/upfile' value='<?php echo isset($user["files"])?$user["files"]:"";?>'}

    <div class="layui-form-item">
      <label class="layui-form-label">购买保险</label>
      <div class="layui-input-inline">
        <select name="insure">
          <option value="0" <?php if(isset($user['insure']) && $user['insure']==0){echo 'selected';} ?>>未购买</option>
          <option value="1" <?php if(isset($user['insure']) && $user['insure']==1){echo 'selected';} ?>>已购买</option>
        </select>
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">三级教育(只读)</label>
      <div class="layui-input-inline">
        <select name="study">
          <option value="0" <?php if(isset($user['study']) && $user['study']==0){echo 'selected';} ?>>未完成</option>
          <option value="1" <?php if(isset($user['study']) && $user['study']==1){echo 'selected';} ?>>已完成</option>
        </select>
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">状态</label>
      <div class="layui-input-inline">
        <select name="status">
          <option value="0" <?php if(isset($user['status']) && $user['status']==0){echo 'selected';} ?>>正常</option>
          <option value="-1" <?php if(isset($user['status']) && $user['status']==-1){echo 'selected';} ?>>离职</option>
        </select>
      </div>
    </div>
  </div>

  {include file="include/js"}
  <script>
    layui.config({
      base: '/layuiadmin/' //静态资源所在路径
    }).extend({
      index: 'lib/index' //主入口模块
    }).use(['index','form'],function () {
      var $=layui.$;
      var form=layui.form;
    });
  </script>
</body>
</html>